package com.dm.cloud.auth.common.po;

import com.dm.cloud.basepo.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
   * @author hcx
   * @type AuthOrg.java
   * @desc AuthOrg
   */

@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_AUTH_ORG")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "AuthOrg")
public class AuthOrg extends BasePo {

      /** 机构名称 **/ 
      @Schema(description = "机构名称")
      @Column(name = "name")
      private String name;
      /** 父级ID **/ 
      @Schema(description = "父级ID")
      @Column(name = "p_id")
      private String pId;
      /** id路径，方便查询 **/ 
      @Schema(description = "id路径，方便查询")
      @Column(name = "id_path")
      private String idPath;

}
